package com.shop.cereshop.business.dao.tool;

import com.shop.cereshop.business.page.tool.ToolProduct;
import com.shop.cereshop.commons.domain.tool.CereShopSeckillDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CereShopSeckillDetailDAO {
    int insert(CereShopSeckillDetail record);

    int insertSelective(CereShopSeckillDetail record);

    void insertBatch(@Param("list") List<CereShopSeckillDetail> list);

    void deleteById(@Param("shopSeckillId") Long shopSeckillId);

    List<ToolProduct> findProducts(@Param("shopSeckillId") Long shopSeckillId);

    List<ToolProduct> findDistinctProducts(@Param("shopSeckillId") Long shopSeckillId);
}